import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { RouterModule } from '@angular/router';

import { PersonSharedModule } from '../../shared';
import {
    CompanyPersonService,
    CompanyPersonPopupService,
    CompanyPersonComponent,
    CompanyPersonDetailComponent,
    CompanyPersonDialogComponent,
    CompanyPersonPopupComponent,
    CompanyPersonDeletePopupComponent,
    CompanyPersonDeleteDialogComponent,
    companyRoute,
    companyPopupRoute,
    CompanyPersonResolvePagingParams,
} from './';

const ENTITY_STATES = [
    ...companyRoute,
    ...companyPopupRoute,
];

@NgModule({
    imports: [
        PersonSharedModule,
        RouterModule.forRoot(ENTITY_STATES, { useHash: true })
    ],
    declarations: [
        CompanyPersonComponent,
        CompanyPersonDetailComponent,
        CompanyPersonDialogComponent,
        CompanyPersonDeleteDialogComponent,
        CompanyPersonPopupComponent,
        CompanyPersonDeletePopupComponent,
    ],
    entryComponents: [
        CompanyPersonComponent,
        CompanyPersonDialogComponent,
        CompanyPersonPopupComponent,
        CompanyPersonDeleteDialogComponent,
        CompanyPersonDeletePopupComponent,
    ],
    providers: [
        CompanyPersonService,
        CompanyPersonPopupService,
        CompanyPersonResolvePagingParams,
    ],
    schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class PersonCompanyPersonModule {}
